﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace Ruction.Mapping2
{
    /// <summary>A map region of land.</summary>
    public class Land : Region
    {
        /// <summary>Creates a new instance of land.</summary>
        /// <param name="owner">The map that owns this region.</param>
        public Land(Map owner) : base(owner) { }

        #region Properties

        #region Color
        /// <summary>The display color of this land.</summary>
        public Color Color { get; set; }
        #endregion Color

        #region TroopCount
        /// <summary>The current number of troops which occupy this land.</summary>
        public int TroopCount { get; set; }
        #endregion TroopCount

        #region TroopCountMax
        /// <summary>The maximum number of troops which can occupy this land.</summary>
        public int TroopCountMax { get { return Convert.ToInt32(Size / Constants.MAXIMUM_TROOP_PERCENT); } }
        #endregion TroopCountMax

        #endregion Properties
    }
}